package ProjectTeam39.Networking;

import java.io.Serializable;

public abstract class Message implements Serializable {

	public enum MessageType {REQUEST, UPDATE, RETURN }	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** message contents */
	private Object contents;
	
/*	private MessageType type;
	
/*	public Message(MessageType type){
		this.type = type;
		this.contents = null;
	}
*/	
	public Message(Object c){
		this.contents = c;
/*		this.type = mt;*/
	}
	
	/*public MessageType getType(){
		return type;
	}*/
	
	public Object getContents(){
		return contents;
	}
	
	public abstract Message handle(final Model pModel);{
		
	}
	
}
